package com.example.redis.lock;
/*
 * @ProjectName: 编程学习
 * @Copyright:   2019 HangZhou Ashe Dev, Ltd. All Right Reserved.
 * @address:     https://yiyuery.github.io/NoteBooks/
 * @date:        2020/3/14 8:47 下午
 * @description: 本内容仅限于编程技术学习使用，转发请注明出处.
 */

import java.util.concurrent.TimeUnit;

public interface IRedisLock {

    boolean tryLock(String key, long timeout, TimeUnit timeUnit);

    void releaseLock(String key);
}
